package com.liy.cloud.auth.client.feign;

import com.das.framework.common.extvo.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "sso", fallbackFactory = AuthorizationFeignClientFallbackFactory.class)
public interface AuthorizationFeignClient {
  @RequestMapping(method = {RequestMethod.POST}, value = {"/auth/authorization"})
  ResultVO authorization(@RequestParam("token") String paramString);
  
  @RequestMapping(value = {"/auth/authorization/hasPermission"}, method = {RequestMethod.POST})
  ResultVO hasPermission(@RequestParam("token") String paramString1, @RequestParam("code") String paramString2);
  
  @RequestMapping(value = {"/auth/authorization/userPubKey"}, method = {RequestMethod.POST})
  ResultVO getUserPublicKey(@RequestParam("clientId") String paramString1, @RequestParam("secret") String paramString2);
  
  @RequestMapping(value = {"/auth/resources/sync"}, method = {RequestMethod.POST})
  ResultVO permissionSync(@RequestBody Object paramObject);
}


/* Location:              C:\Users\admin\Desktop\Jar\das-cloud-osc\das-cloud-osc-auth-client-1.0.0-SNAPSHOT.jar!\com\das\cloud\auth\client\feign\AuthorizationFeignClient.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.0.7
 */